angular.module('myApp', ['ngMessages'])
.controller('signupController', function($scope) {
    $scope.submitted = false;
    $scope.signupForm = function() {
        if ($scope.signup_form.$valid) {
// 正常提交
        } else {
            $scope.signup_form.submitted = true;
        }
    }
})

